//
//  GroupRegViewController.h
//  MapLink
//
//  Created by student on 5/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserGroupMapViewController.h"
#import "UIViewPassValueDelegate.h"

@interface GroupRegViewController : UIViewController {
	NSObject<UIViewPassValueDelegate> * delegate;
	NSString *displayName;
	NSString *deviceID;
	NSMutableData *buffer;
	NSURLConnection *conn;
	
	IBOutlet UILabel *lebelHelpText;
	IBOutlet UITextField *textGroupName;
	IBOutlet UITextField *textGroupPassword;
	IBOutlet UIActivityIndicatorView *activityIndicatorView;
}
@property(nonatomic, retain) NSObject<UIViewPassValueDelegate> * delegate;
@property (nonatomic, assign) NSString *displayName;
@property (nonatomic, assign) NSString *deviceID;
@property(nonatomic, retain) NSMutableData *buffer;


-(id) init;
-(void) addGroupBy:(NSString *)action;
-(IBAction) joinGroup;
-(IBAction) createGroup;
-(IBAction)cancel;

@end
